import request from '@/utils/request'

// 查询课程4列表
export function listCourses4(query) {
  return request({
    url: '/system/courses4/list',
    method: 'get',
    params: query
  })
}

// 查询课程4详细
export function getCourses4(courseId) {
  return request({
    url: '/system/courses4/' + courseId,
    method: 'get'
  })
}

// 新增课程4
export function addCourses4(data) {
  return request({
    url: '/system/courses4',
    method: 'post',
    data: data
  })
}

// 修改课程4
export function updateCourses4(data) {
  return request({
    url: '/system/courses4',
    method: 'put',
    data: data
  })
}

// 删除课程4
export function delCourses4(courseId) {
  return request({
    url: '/system/courses4/' + courseId,
    method: 'delete'
  })
}
